# coding = utf-8

import unittest
from xd_api_test.util.request_util import RequestUtil

host = "https://api-v2.xdclass.net"


class UserTestCase(unittest.TestCase):


    def testIndexCategoryList(self):
        """
        收藏视频列表
        """
        request = RequestUtil()
        url = host + "/api/product/v1/detail"
        data = {"productId": 97}
        headers = {"Content-Type": "application/x-www-form-urlencoded"}
        response = request.request(url, 'post', param=data, headers=headers)

        self.assertEqual(response['code'], 0, "业务状态不正常")

        self.assertTrue(len(response['data']) > 0, "收藏视频列表为空")


if __name__ == '__main__':
    unittest.main(verbosity=2)


